grakel.graph.is_adjacency

grakel.graph.is_adjacency(g, transform=False)[source][source]

Define if input is in a valid adjacency matrix format.

Parameters
gObject

The input object.

transformbool, default=False

Defines if the input will be transformed to the internal adjacency matrix support format.

Returns
is_adjacencybool

A variable that determines if the input is a valid adjacency matrix.

g_transformednp.array

Holds the transformed object to an np.array. This output appears only if transform parameter is True.