What would be the best way to visualize DAG’s nodes and edges in a text form/file? The node can be referred by its name.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A good way that always worked fine for me is this:
In the first line put all node names (maybe also the total number of nodes).
After that, at each line put first the node name and then all nodes the current node has a directed edge.
Example:
That works of course if all edge weights are equal (or none exist).
If you also want to use weights, one possible solution would be like this:
Example: