Graph Node Degree
Graph Node Degree is used to compute the Node Degree metric of a node in a graph, which is the number of incident edges to each node.
This is a part of a series of custom modules based on the CRAN igraph package.
Graph Node Degree is used to compute the Node Degree metric of a node in a graph, which is the number of incident edges to each node.
The input port is the graph dataset and needs to be represented in two columns as a list of edges where each value in each column represents a Node Id and each row represents an Edge, as shown here.
![enter image description here][1]
Here is an example showing how to use this custom component.
![enter image description here][2]
In this example, network.csv was generated using available code as described in “Lancichinetti, Andrea, Santo Fortunato, and Filippo Radicchi: Benchmark graphs for testing community detection algorithms. Physical Review E 78.4 (2008): 046110”.
This is what the output of the module looks like for this graph. Here the output was generated with the results sorted.
![enter image description here][3]
For directed graphs, both In-node Degree and Out-node Degree are computed, as shown below. Here the computed values are the same because the graph is undirected and the option “Directed Graph” in the module properties was selected only to demonstrated this possibility.
![enter image description here][4]
[1]: https://alvilcek.blob.core.windows.net/azuremlcustommodules/Azure%20ML%20Custom%20Modules/documentation/Graph_Node_Degree_1.PNG
[2]: https://alvilcek.blob.core.windows.net/azuremlcustommodules/Azure%20ML%20Custom%20Modules/documentation/Graph_Node_Degree_2.PNG
[3]: https://alvilcek.blob.core.windows.net/azuremlcustommodules/Azure%20ML%20Custom%20Modules/documentation/Graph_Node_Degree_3.PNG
[4]: https://alvilcek.blob.core.windows.net/azuremlcustommodules/Azure%20ML%20Custom%20Modules/documentation/Graph_Node_Degree_4.PNG