6.70 SDO_NET.GET_NODE_DEGREE

Format

SDO_NET.GET_NODE_DEGREE(      
  network  IN VARCHAR2,      
  node_id  IN NUMBER      
) RETURN NUMBER;

Description

Returns the number of links to a node.

Parameters

network

Network name.

node_id

Node ID of the node for which to return the number of links.

Usage Notes

For information about node degree and related Network Data Model concepts, see Network Data Model Concepts.

Examples

The following example returns the number of links to the node whose node ID is 3 in the network named ROADS_NETWORK.

SELECT SDO_NET.GET_NODE_DEGREE('ROADS_NETWORK', 3) FROM DUAL;
 
SDO_NET.GET_NODE_DEGREE('ROADS_NETWORK',3)                                      
------------------------------------------                                      
                                         3