Group Abstract Group Abstract

Message Boards Message Boards

Algorithm for finding the minimum spanning tree of a graph output the value Null?

Posted 2 years ago
Attachments:
POSTED BY: Varvara Markova
2 Replies
Posted 2 years ago

Try changing

While[noedge<num-1,
...
]
Graph[vert,EdgeWeight->weights]

to

While[noedge<num-1,
...
];
Graph[vert,EdgeWeight->weights]
POSTED BY: Bill Nelson

Thank you so much!

POSTED BY: Varvara Markova
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard