2020-03-16 22:51:09 +0200 | commented answer | Error in datastructure in sagemath Thanks.. I used g.to_directed() without any input. That also worked.. |
2020-03-16 08:22:25 +0200 | asked a question | Data structure Error while creating graph I am new to creating a graph. I am trying to analyse a code by recreating it. My sample code is given below: n=10 show(graphs.CompleteGraph(2n+2)) g=graphs.CompleteGraph(2n+2) time_window_interval = [0, 4*60] g = g.to_directed(time_window_interval) g.show On running the code, I am getting "ValueError: data_structure must be equal to 'sparse', 'static_sparse' or 'dense'" on the line g = g.to_directed(time_window_interval). |
2020-03-16 08:22:25 +0200 | asked a question | Error in datastructure in sagemath I am new to creating a graph. I am trying to analyse a code by recreating it. My sample code is given below: On running the code, I am getting "ValueError: data_structure must be equal to 'sparse', 'static_sparse' or 'dense'" on the line g = g.to_directed(time_window_interval). |