summaryrefslogtreecommitdiff
path: root/networkx/classes/tests/test_backends.py
blob: 8d0c86a44b5c977c3d196cf2f9145aa4eaaf6071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest

import networkx as nx

pytest.importorskip("scipy")
pytest.importorskip("numpy")


def test_dispatch_kwds_vs_args():
    G = nx.path_graph(4)
    nx.pagerank(G)
    nx.pagerank(G=G)
    with pytest.raises(TypeError):
        nx.pagerank()