Esempio n. 1
0
 /// <nodoc />
 public static Xldb.Proto.Edge ToEdge(this Edge edge)
 {
     return(new Xldb.Proto.Edge()
     {
         OtherNode = edge.OtherNode.ToNodeId(),
         IsLight = edge.IsLight,
         Value = edge.Value
     });
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the next index and edge given the current index and whether iterating incoming edges vs outgoing edges
 /// </summary>
 /// <param name="currentIndex">the current index for the incoming (isIncoming = true) or outgoing (isIncoming = false) edge</param>
 /// <param name="edge">returns the edge for the current index</param>
 /// <param name="nextIndex">returns the index of the next edge in the edge list</param>
 /// <param name="isIncoming">true if iterating incoming edges. False if iterating outgoing edges.</param>
 protected abstract void GetEdgeAndNextIndex(int currentIndex, out Edge edge, out int nextIndex, bool isIncoming);