SYNTAX
------

C Syntax
^^^^^^^^

.. code-block:: c

    int MPI_Dist_graph_neighbors_count(MPI_Comm comm, int* indegree,
        int* outdegree, int* weighted)

Fortran Syntax
^^^^^^^^^^^^^^

.. code-block:: fortran

    USE MPI
    ! or the older form: INCLUDE 'mpif.h'
    MPI_DIST_GRAPH_NEIGHBORS_COUNT(COMM, INDEGREE, OUTDEGREE, WEIGHTED, IERROR)
    	INTEGER COMM, INDEGREE, OUTDEGREE, IERROR
    	LOGICAL WEIGHTED

Fortran 2008 Syntax
^^^^^^^^^^^^^^^^^^^

.. code-block:: fortran

    USE mpi_f08
    MPI_Dist_graph_neighbors_count(comm, indegree, outdegree, weighted, ierror)
    	TYPE(MPI_Comm), INTENT(IN) :: comm
    	INTEGER, INTENT(OUT) :: indegree, outdegree
    	LOGICAL, INTENT(OUT) :: weighted
    	INTEGER, OPTIONAL, INTENT(OUT) :: ierror
