NETWORK Procedure

PROJECTION Statement

  • PROJECTION < options >;

The PROJECTION statement invokes an algorithm that calculates the network projection of the multiple-partition input graph and produces a single-partition output graph. The network projection problem is described in the section Network Projection.

You can specify the following options:

ADAMICADAR=TRUE | FALSE

specifies whether to calculate Adamic-Adar node similarity. You can specify the following values:

TRUE

calculates Adamic-Adar node similarity and saves the results in the output table that is specified in the OUTPROJECTIONLINKS= option.

FALSE

does not calculate Adamic-Adar node similarity.

By default, ADAMICADAR=FALSE.

COMMONNEIGHBORS=TRUE | FALSE

specifies whether to calculate common neighbors node similarity. You can specify the following values:

TRUE

calculates common neighbors node similarity and saves the results in the output table that is specified in the OUTPROJECTIONLINKS= option.

FALSE

does not calculate common neighbors node similarity.

By default, COMMONNEIGHBORS=FALSE.

COSINE=TRUE | FALSE

specifies whether to calculate cosine node similarity. You can specify the following values:

TRUE

calculates cosine node similarity and saves the results in the output table that is specified in the OUTPROJECTIONLINKS= option.

FALSE

does not calculate cosine node similarity.

By default, COSINE=FALSE.

DICE=TRUE | FALSE

specifies whether to calculate Dice node similarity. You can specify the following values:

TRUE

calculates Dice node similarity and saves the results in the output table that is specified in the OUTPROJECTIONLINKS= option.

FALSE

does not calculate Dice node similarity.

By default, DICE=FALSE.

DIRECTEDMETHOD=CONVERGING | DIVERGING | TRANSITIVE

specifies the method to use for projection of directed graphs. This option can be used only for directed graphs. You can specify the following values:

CONVERGING

uses shared out-neighbors to define projected links.

DIVERGING

uses shared in-neighbors to define projected links.

TRANSITIVE

uses directed paths of length two to define projected links.

By default, DIRECTEDMETHOD=CONVERGING.

JACCARD=TRUE | FALSE

specifies whether to calculate Jaccard node similarity. You can specify the following values:

TRUE

calculates Jaccard node similarity and saves the results in the output table that is specified in the OUTPROJECTIONLINKS= option.

FALSE

does not calculate Jaccard node similarity.

By default, JACCARD=FALSE.

OUTNEIGHBORSLIST=libref.data-table

specifies the output data table to contain the lists of common neighbors between pairs of nodes. libref.data-table is a two-level name, where libref refers to the library, and data-table specifies the name of the output data table. For more information about this two-level name, see the section Using CAS Sessions and CAS Engine Librefs in Chapter 1, Introduction.

OUTPROJECTIONLINKS=libref.data-table

specifies the output data table to contain the links of the projected graph. libref.data-table is a two-level name, where libref refers to the library, and data-table specifies the name of the output data table. For more information about this two-level name, see the section Using CAS Sessions and CAS Engine Librefs in Chapter 1, Introduction.

OUTPROJECTIONNODES=libref.data-table

specifies the output data table to contain the nodes of the projected graph. libref.data-table is a two-level name, where libref refers to the library, and data-table specifies the name of the output data table. For more information about this two-level name, see the section Using CAS Sessions and CAS Engine Librefs in Chapter 1, Introduction.

PARTITION=column

specifies the name of the data variable for the partition flag. The value of the variable must be 0, 1, or missing. The input graph is projected onto the set of nodes that have a partition flag of 1. The projected graph has links between node pairs that are connected via a common neighbor among the set of nodes that have a partition flag of 0. Nodes that have a missing value for the partition flag are excluded from the calculation.

Last updated: August 07, 2026