aryagraph.algorithms.matrix.incidence_matrix# aryagraph.algorithms.matrix.incidence_matrix(g: Any, *, oriented: bool = False, nodes: list[Hashable] | None = None) → ndarray[source]# (n_nodes, n_edges) incidence matrix; oriented puts -1 at the tail, +1 at the head.