VertexCoordinate Rules and VertexList from GraphPlot Graphic

后端 未结 3 1006
谎友^
谎友^ 2020-12-10 18:56

Is there any way of abstracting the vertex order that GraphPlot applies to VertexCoordinate Rules from the (FullForm or InputForm) of the graphic produced by GraphPlot? I d

3条回答
  •  旧时难觅i
    2020-12-10 19:30

    p2 = Normal@gp1 // Cases[#, Line[points__] :> points, Infinity] &;
    p3 = Flatten[p2, 1];
    ListLinePlot[p3[[All, 1 ;; 2]]]
    

    V12.0.0

提交回复
热议问题