graphicle.matrix.fc_adj(num_nodes: int, self_loop: bool = False, dtype: dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | collections.abc.Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any] = '<?') ndarray[Any, dtype[float64]][source]

Create a fully connected adjacency matrix.

New in version 0.1.0.

Parameters:
num_nodes : int

Number of nodes the graph should have.

self_loop : bool

Whether to include edges from a node to itself. Default is False.

dtype : dtype-like

The dtype of the output array. Default is np.bool_.

Returns:

adj – Fully connected Adjacency matrix representing particle connectivity.

Return type:

ndarray[bool_] or ndarray[float64]


Last update: Jun 27, 2025