Skip to content

How to get a list of node #798

Answered by kamiazya
murawakimitsuhiro asked this question in Q&A
Discussion options

You must be logged in to vote

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.

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 spon…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kamiazya
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #584 on January 28, 2023 04:00.