enter specific graph

asked 2019-10-29 08:34:53 +0200

Probably a very dumb question but I couldn't find the answer online...

How do I enter a specific graph in sage? I want to say how many vertices I have and then add the edges (0,2) for an edge that goes from vertice 0 to vertice 2.

For instance I only found specific graphs (full graphs, path graphs etc)

edit retag flag offensive close merge delete



You will find many examples in the online documentation and in the book Computational Mathematics with SageMath

David Coudert gravatar imageDavid Coudert ( 2019-10-31 09:03:46 +0200 )edit