brainconn.motifs
.find_motif34¶
-
find_motif34
(m, n=None)[source]¶ This function returns all motif isomorphs for a given motif id and class (3 or 4). The function also returns the motif id for a given motif matrix
- Input: Motif_id, e.g. 1 to 13, if class is 3
- Motif_class, number of nodes, 3 or 4.
Output: Motif_matrices, all isomorphs for the given motif
2. Input: Motif_matrix e.g. [0 1 0; 0 0 1; 1 0 0] Output Motif_id e.g. 1 to 13, if class is 3
Parameters: - m (int | matrix) – In use case 1, a motif_id which is an integer. In use case 2, the entire matrix of the motif (e.g. [0 1 0; 0 0 1; 1 0 0])
- n (int | None) – In use case 1, the motif class, which is the number of nodes. This is either 3 or 4. In use case 2, None.
Returns: M – In use case 1, returns all isomorphs for the given motif In use case 2, returns the motif_id for the specified motif matrix
Return type: numpy.ndarray
| int