how to get the sagemath programs related to graphs with nodes and edges

asked 2024-08-30 06:54:50 +0100

Juliet gravatar image

updated 2024-08-30 13:09:19 +0100

rburing gravatar image

i need to write programs to draw a graph in graph theory using sagemath

edit retag flag offensive close merge delete

Comments

Just create a graph

G = Graph([[1,2],[2,3]])

and press G.TAB to see the many available methods of graph objects.

FrédéricC gravatar imageFrédéricC ( 2024-08-30 08:39:03 +0100 )edit

Hi

look here maybe it could help you ?

ortollj gravatar imageortollj ( 2024-08-30 09:48:14 +0100 )edit

is this homework ?

FrédéricC gravatar imageFrédéricC ( 2024-08-30 16:57:19 +0100 )edit
FrédéricC gravatar imageFrédéricC ( 2024-08-31 20:34:28 +0100 )edit