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 ๐บ ๎…ž