Re: [sage-support] Strange

2018-04-07 Thread David Joyner
On Sat, Apr 7, 2018 at 8:52 AM, Henri Girard wrote: > I made this graph (meaning a fano's plane) but I have the zero outside the > graph ? > > I don't understand why ? someone could explain ? > I don't know but sage: edges = [(1,2), (1,3), (1,4), : (2,3), (2,4),

Re: [sage-support] Strange

2018-04-07 Thread Jan Groenewald
Hi On 7 April 2018 at 14:52, Henri Girard wrote: > I made this graph (meaning a fano's plane) but I have the zero outside the > graph ? > > I don't understand why ? someone could explain ? > > My adjacency_matrix is 8 but shouldn't be 7 ? > > g=Graph(7) > edges = [(1,2),

Re: [sage-support] Strange

2018-04-07 Thread Nikos Apostolakis
Graph(7) creates a graph with vertices {0 ..., 6} HTH, Nikos Sent from my iPhone > On Apr 7, 2018, at 9:16 AM, Henri Girard wrote: > > thanks, I tried david suggestion and it's correct now : > > edges = [(1,2), (1,3), (1,4), > (2,3), (2,4), (2,5), (2, 6), >

[sage-support] Strange

2018-04-07 Thread Henri Girard
I made this graph (meaning a fano's plane) but I have the zero outside the graph ? I don't understand why ? someone could explain ? My adjacency_matrix is 8 but shouldn't be 7 ? g=Graph(7) edges = [(1,2), (1,3), (1,4),     (2,3), (2,4), (2,5), (2, 6),     (3,4), (3,5), (3,6), (3,7),    

Re: [sage-support] Strange

2018-04-07 Thread Henri Girard
thanks, I tried david suggestion and it's correct now : edges = [(1,2), (1,3), (1,4),     (2,3), (2,4), (2,5), (2, 6),     (3,4), (3,5), (3,6), (3,7),     (4,6), (4,7), (5,6), (6,7)] Gamma = Graph(edges) Gamma.show() Meanwhile I made it too with networkx to compare : import networkx as nx