ELconnectedgroups

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - EL/Edge Lists
Introduced first in SolidGeometry 4.1, Creation date: 2017-09-08, Last change: 2025-09-14

returns edge lists in groups of isolate indices

Description

Use CILofEL afterwards
Use CELofEL to create EL with same directions

See Also: CELofEL , ELreconnect , ELofELmesh

Example Illustration

 missing image of ELconnectedgroups(EL,vi)

Syntax

[NEL,CIL]=ELconnectedgroups(EL,vi)

Input Parameter

EL: Edge list
vi: Optional list of interested vertices; default is ''

Output Parameter

NEL: New Edge list; NOT SORTED ONLY GROUPED
CIL: Group Index List

Examples


ELconnectedgroups(FEofSG(SGsample(32)))
[NEL,CIL]=ELconnectedgroups( floor(rand(10,2)*10+1))




Copyright 2017-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, ELconnectedgroups, processes an edge list to identify and group connected components. It is part of the SolidGeometry library.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize vi to an empty list if not provided.
  2. Determine the number of edges, ne, from the size of EL.
  3. Initialize NEL and CIL as zero matrices with dimensions based on ne.
  4. Set counters k and l to zero.
  5. Enter a loop that continues until EL is empty:
  6. Trim CIL and NEL to remove unused rows.
  7. If no output arguments are specified, plot the grouped edge list using ELplot and display CIL.
Algorithm explaination created using ChatGPT on 2025-08-19 07:19. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21