Example #1
0
        private static void GlueNodes(EdgeRelationEntity rel, Dictionary <int, Node> nodeMap)
        {
            var fromNode = nodeMap[rel.FromNodeId];
            var toNode   = nodeMap[rel.ToNodeId];

            var edge = new Edge(rel.EdgeKey, toNode);

            fromNode.AppendEdge(edge);
        }
 public static string GetLabel(EdgeRelationEntity rel) =>
 GetLabel(rel.RelationId, $"{rel.FromNodeId} --> {rel.EdgeId} --> {rel.ToNodeId}");