19 proto external
bool HasNode(GraphNodeId nodeId);
21 proto external
GraphNode GetNode(GraphNodeId nodeId);
23 proto external GraphNodeId AddNode(
GraphNode graphNode);
28 proto external
bool RemoveNode(GraphNodeId nodeId);
34 proto external
bool RemoveNodes(notnull array<GraphNodeId> nodeIds);
36 proto external
bool AddEdge(GraphNodeId node1,
GraphEdge edge);
38 proto external
GraphEdge GetEdge(GraphNodeId node1, GraphNodeId node2);
40 proto external
int GetEdges(GraphNodeId node, out notnull array<ref GraphEdge> edges);
42 proto external
bool RemoveEdge(GraphNodeId node1, GraphNodeId node2);
44 proto external
bool HasEdge(GraphNodeId node1, GraphNodeId node2);
46 proto external
int GetAdjacentNodes(GraphNodeId node, out notnull array<GraphNodeId> adjacentNodes);
54 event bool CanAddNode(
GraphNode graphNode) {
return true; };
55 event void OnNodeAdded(
GraphNode graphNode);
56 event void OnNodeRemoved(
GraphNode graphNode);