Skip to content

Commit 6a04543

Browse files
committed
📝 Add parameters section
1 parent bbbab57 commit 6a04543

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/swiflow/common.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ def _infer_layer_impl(gd: nx.DiGraph[_V]) -> Mapping[_V, int]:
5656
def infer_layer(g: nx.Graph[_V], anyflow: Mapping[_V, _V | AbstractSet[_V]]) -> Mapping[_V, int]:
5757
"""Infer layer from flow/gflow.
5858
59+
Parameters
60+
----------
61+
g : `networkx.Graph`
62+
Simple graph representing MBQC pattern.
63+
anyflow : `tuple` of flow-like/layer
64+
Flow to verify. Compatible with both flow and generalized flow.
65+
5966
Notes
6067
-----
6168
This function is based on greedy algorithm.

0 commit comments

Comments
 (0)