Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
SUBROUTINE SORTDG(STK1,STK2,X1,X2,NDEG)! SORTDG SORTS STK2 BY DEGREE OF THE NODE AND ADDS IT TO THE END! OF STK1 IN ORDER OF LOWEST TO HIGHEST DEGREE. X1 AND X2 ARE THE! NUMBER OF NODES IN STK1 AND STK2 RESPECTIVELY.INTEGER X1,X2,STK1,STK2,TEMP! COMMON /GRA/ N, IDPTH, IDEGDIMENSION NDEG(N),STK1(X1+X2),STK2(X2)IND=X210ITEST=0IND=IND-1IF(IND<1)GOTO30DO 20I=1,INDJ=I+1ISTK2=STK2(I)JSTK2=STK2(J)IF(NDEG(ISTK2)<=NDEG(JSTK2))CYCLEITEST=1TEMP=STK2(I)STK2(I)=STK2(J)STK2(J)=TEMP20END DO IF(ITEST==1)GOTO1030DO 40I=1,X2X1=X1+1STK1(X1)=STK2(I)40END DO RETURN END SUBROUTINE SORTDG