39 | | ~~ ~~sage: import numpy |

40 | | ~~ ~~sage: A = numpy.array([[0,1,1],[1,0,1],[1,1,0]]) |

41 | | ~~ ~~sage: Graph(A).edges() |

42 | | ~~ ~~[(0, 1, {0: {'weight': 1}, 1: {'weight': 1}}), |

43 | | ~~ ~~(0, 2, {0: {'weight': 1}, 1: {'weight': 1}}), |

44 | | ~~ ~~(1, 2, {0: {'weight': 1}, 1: {'weight': 1}})] |

| 38 | sage: import numpy |

| 39 | sage: A = numpy.array([[0,1,1],[1,0,1],[1,1,0]]) |

| 40 | sage: Graph(A).edges() |

| 41 | [(0, 1, {0: {'weight': 1}, 1: {'weight': 1}}), |

| 42 | (0, 2, {0: {'weight': 1}, 1: {'weight': 1}}), |

| 43 | (1, 2, {0: {'weight': 1}, 1: {'weight': 1}})] |

54 | | ~~ ~~sage: g = Graph([(1,2,3),(1,2,4)], multiedges = False) |

55 | | ~~ ~~... |

56 | | ~~ ~~ValueError: Two different labels given for the same edge in a graph without multiple edges. |

| 52 | sage: g = Graph([(1,2,3),(1,2,4)], multiedges = False) |

| 53 | ... |

| 54 | ValueError: Two different labels given for the same edge in a graph without multiple edges. |