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 用戶端使用這個