SYNTAX
------

C Syntax
^^^^^^^^

.. code-block:: c

    int MPI_Dist_graph_neighbors(MPI_Comm comm, int maxindegree, int
        sources[], int sourceweights[], int maxoutdegree, int
        destinations[], int destweights[])

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

.. code-block:: fortran

    USE MPI
    ! or the older form: INCLUDE 'mpif.h'
    MPI_DIST_GRAPH_NEIGHBORS(COMM, MAXINDEGREE, SOURCES, SOURCEWEIGHTS, MAXOUTDEGREE, DESTINATIONS, DESTWEIGHTS, IERROR)
    	INTEGER COMM, MAXINDEGREE, SOURCES(*), SOURCEWEIGHTS(*), MAXOUTDEGREE, DESTINATIONS(*), DESTWEIGHTS(*), IERROR

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

.. code-block:: fortran

    USE mpi_f08
    MPI_Dist_graph_neighbors(comm, maxindegree, sources, sourceweights, maxoutdegree, destinations, destweights, ierror)
    	TYPE(MPI_Comm), INTENT(IN) :: comm
    	INTEGER, INTENT(IN) :: maxindegree, maxoutdegree
    	INTEGER, INTENT(OUT) :: sources(maxindegree), destinations(maxoutdegree)
    	INTEGER :: sourceweights(*), destweights(*)
    	INTEGER, OPTIONAL, INTENT(OUT) :: ierror
