Qurak

EdgeIndex

利用可能

1-based position of an edge in EdgeList (TwoWayRule or UndirectedEdge spec)

EdgeIndex[g, e]
EdgeIndex[{v -> w, …}, …]
g = CompleteGraph[4, DirectedEdges -> True, EdgeStyle -> Arrowheads[Small]]; Table[EdgeList[g][[EdgeIndex[g, e]]] === e, {e, EdgeList[g]}] → {True, True, True, True, True, True}

トピック

関連

全 6300 関数 · MCPクライアントから使う