'Tests that a symmetric matrix has edges added only once to an
undirected multigraph when using :func:`networkx.from_numpy_matrix`.'

def test_symmetric(self):

    A = np.matrix([[0, 1], [1, 0]])
    G = nx.from_numpy_matrix(A, create_using=nx.MultiGraph())
    expected = nx.MultiGraph()
    expected.add_edge(0, 1, weight=1)
    assert_graphs_equal(G, expected)
