You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In contrast to vertex models, edge models in general have *two* inputs and *two* outputs, for both the source and the
94
-
destination end of the edge. We commonly use `src` and `dst` to describe the source and destination end of an edge
95
-
respectively.
95
+
In contrast to vertex models, edge models in general have *two* inputs and *two* outputs, for both the source and the
96
+
destination end of the edge. We commonly use `src` and `dst` to describe the source and destination end of an edge,
97
+
respectively.
98
+
99
+
The *inputs* of the edge are the outputs of the two nodes at both their ends. The output is split into two parts:
100
+
the `dst` output goes to the input of the vertex at the destination end, the `src` output goes to the input of the
101
+
vertex at the `src` end.
102
+
103
+
For undirected graphs, `Graphs.jl` chooses the direction of an edge `v1->v2` such that `v1 < v2`, i.e. the edge between
104
+
vertices 16 and 12 will be always an edge with source `src=12` and destination `dst=16`.
96
105
97
106
!!! note "On the directionality of edges"
98
107
Mathematically, in a system defined on an undirected graph there is no difference between edge $(1,2)$ and
99
108
edge $(2,1)$, because the edge has no direction. However, from an implementation point of view we always need to have
100
109
some kind of ordering, which is why we introduce the source and destination terminology.
101
110
102
-
For undirected graphs, `Graphs.jl` chooses the direction of an edge `v1->v2` such that `v1 < v2`, i.e. the edge between vertices 16 and 12 will be always and edge with `src=12` and `dst=16`.
103
-
104
-
The *inputs* of the edge are the outputs of the two nodes at both their ends. The output is split into two parts:
105
-
the `dst` output goes to the input of the vertex at the destination end, the `src` output goes to the input of the
0 commit comments