Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # A Node is an str
- # An Edge is tuple(Node, Node)
- # A Graph is a list(Graph)
- example_graph = [
- ("A", "B"),
- ("A", "E"),
- ("B", "E"),
- ("B", "F"),
- ("C", "D"),
- ("E", "C"),
- ("E", "F"),
- ("F", "G")]
Add Comment
Please, Sign In to add comment