Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to slove this problem

import networkx as nx FG=nx.Graph() FG.add_weighted_edges_from([(1,2,41),(1,3,75),(2,4,23),(3,4,81),(3,2,43),(4,5,25),(5,2,45)]) when put in .sage file . When i go to sage terminal and run it IndentationError: unexpected indent (<string>, line 2) error is comein. Hwat can be the problem and please let me know i can slove this

how to slove this problemIndentationError

import I wrote "import networkx as nx FG=nx.Graph() FG.add_weighted_edges_from([(1,2,41),(1,3,75),(2,4,23),(3,4,81),(3,2,43),(4,5,25),(5,2,45)]) when put FG.add_weighted_edges_from([(1,2,41),(1,3,75),(2,4,23),(3,4,81),(3,2,43),(4,5,25),(5,2,45)])" in a .sage file . file. When i I go to sage terminal and run it I get IndentationError: unexpected indent (<string>, line 2) error is comein. Hwat 2). What can be the problem and please let me know i how I can slove thisthis.