Research Article
Pathway Detection from Protein Interaction Networks and Gene Expression Data Using Color-Coding Methods and A* Search Algorithms
Algorithm 1
The pseudocode of the color-coding method.
Input: Network G (V,E), K colors | Output: colored network | (1) Sort all nodes v โ V by degree (from high degree to low degree) into Set S | (2) for each vโS | (3)โโIf Colored(v) = true go to step 2 and search next node; | (4)โโassign one color to node v from k colors; | (5)โโColored(v) = true; | (6)โโFor each โ neighbor(v) and Colored() = false; | (7)โโโIf degree() = 1 then assign the same color with v; | (8)โโโโโelse | (9)โโโโassign color node that have a different color with hub v from other k-l colors; | (10)โโโColored() = true; | (11)โโโEnd for | (12) End for | (13) Extract articulation points u from network G; | (14) For each node โu | (15)โโโcheck if u has the same color of any neighbor if so change it; | (16) End for | (17) Return colored network |
|