Research Article
Characterization of 2-Path Signed Network
Algorithm 2
Algorithm to obtain a 2-path signed network for a given signed network.
| Input: Adjacency matrix A, dimension n and array from Algorithm 1. | | Output: Adjacency matrix of 2-path signed network. | | Process: | (1) | Enter the order and adjacency matrix of for a given signed network . | (2) | for to do | (3) | fordo | (4) | 5 fordo | (5) | if () then | (6) | ifthen | (7) | | (8) | | (9) | fordo | (10) | ifthen | (11) | | (12) | |
|