User Tools

Site Tools


01_user_documentation:06_graph:01_edge

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
01_user_documentation:06_graph:01_edge [2025/08/19 16:01] gaetan01_user_documentation:06_graph:01_edge [2025/09/05 15:25] (current) gaetan
Line 1: Line 1:
 ====== Edge ====== ====== Edge ======
  
-Edge are the base element of the graphs. Indeed, the GroIMP implementation of graph define [[:01_user_documentation:06_graph:02_node|nodes]] as extending edgesThis design enables to save memory as, if two nodes are connected by only one edge, no edge object is required. The information of the edge is hosted in the nodes.+Edges link [[:01_user_documentation:06_graph:02_node|nodes]] togetherEach edge have exactly one source and one target. The source and target can be the same node. In that case the node has an edge toward itself.
  
-This section presents the different type of edge defined in GroIMP.+By default, edges cannot hold data other than one integer (the edgebits). The edgebits define which type of edge it is. The type of edge is tested with bit operations. Thus, an edge can be of several type. Additionally there is a specific way of using a Node as an edge (called EdgeNode) in order to hold more information in the edge.  
 + 
 +This section presents the different type of edge defined in GroIMP. All standards bit masks for edges can be accessed in the interface [[https://javadoc.grogra.de/graph/de/grogra/graph/Graph.html|de.grogra.graph.Graph]] as static fields.
  
  
01_user_documentation/06_graph/01_edge.1755612116.txt.gz · Last modified: 2025/08/19 16:01 by gaetan