How to get a list of node #798
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The graph does not manage the node designated as an edge element as a graph node. This is because the node specified when adding an edge is just an alias for the node, and it is not possible to distinguish whether it is a node declared outside the graph as shown below. graph G {
a;
subgraph cluster_hoge {
a -- b;
}
} So, in order to do what you want to do, either declare the node in the graph in advance (A) or get the ID of the target node of the edge (B). See runkit demo This issue will be closed, but if you need more, please create a new topic in the discussion. If this helps, I would appreciate it if you could cooperate with my funding in sponsorship. Thanks |
Beta Was this translation helpful? Give feedback.
-
@all-contributors please add @murawakimitsuhiro for question. |
Beta Was this translation helpful? Give feedback.
-
I've put up a pull request to add @murawakimitsuhiro! 🎉 |
Beta Was this translation helpful? Give feedback.
Hi @murawakimitsuhiro
The graph does not manage the node designated as an edge element as a graph node.
This is because the node specified when adding an edge is just an alias for the node, and it is not possible to distinguish whether it is a node declared outside the graph as shown below.
So, in order to do what you want to do, either declare the node in the graph in advance (A) or get the ID of the target node of the edge (B).
See runkit demo
This issue will be closed, but if you need more, please create a new topic in the discussion.
If this helps, I would appreciate it if you could cooperate with my funding in spon…