Skip to content

module 'easygraph' has no attribute 'Graph' #149

Description

@LegendZDY

Hi,

easygraph is a fantastic tool. I am currently developing a biological network software, but after installing easygraph v1.5 and python v3.12, I encountered the following error when running the example:

AttributeError Traceback (most recent call last)
Cell In[8], line 3
1 from easygraph.datasets import get_graph_karateclub
2 import easygraph as eg
----> 3 G = get_graph_karateclub()
4 # Calculate five shs(Structural Hole Spanners) in G
5 shs = eg.common_greedy(G, 5)

File ~/.cache/pypoetry/virtualenvs/biomarker-Mk2HMW0Q-py3.12/lib/python3.12/site-packages/easygraph/datasets/get_sample_graph.py:33, in get_graph_karateclub()
30 club1 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 16, 17, 19, 21}
31 # club2 = all_members - club1
---> 33 G = eg.Graph(name="Zachary's Karate Club")
34 for node in all_members:
35 G.add_node(node + 1)

AttributeError: module 'easygraph' has no attribute 'Graph'

Looking forward to your reply!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions