Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] AttributeError: 'Graph' object has no attribute 'edgelist' #1767

Closed
ZaneL opened this issue Aug 7, 2021 · 1 comment · Fixed by #1779
Closed

[BUG] AttributeError: 'Graph' object has no attribute 'edgelist' #1767

ZaneL opened this issue Aug 7, 2021 · 1 comment · Fixed by #1779
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ZaneL
Copy link

ZaneL commented Aug 7, 2021

Is there any particular reason why I can't do this? This is the error I get:

AttributeError: 'Graph' object has no attribute 'edgelist'

I figure since cugraph and networkx are supposed to be compatible, this would be a fairly standard operation.

import networkx as nx
import cudf
import cugraph

G = nx.hypercube_graph(4)

ITERATIONS=500
THETA=1.0
OPTIMIZE=True

pos_gdf = cugraph.layout.force_atlas2(G,
                                  max_iter=ITERATIONS,
                                  pos_list=None,
                                  outbound_attraction_distribution=True,
                                  lin_log_mode=False,
                                  edge_weight_influence=1.0,
                                  jitter_tolerance=1.0,
                                  barnes_hut_optimize=OPTIMIZE,
                                  barnes_hut_theta=THETA,
                                  scaling_ratio=2.0,
                                  strong_gravity_mode=False,
                                  gravity=1.0,
                                  verbose=False,
                                  callback=None)
@ZaneL ZaneL added ? - Needs Triage Need team to review and classify bug Something isn't working labels Aug 7, 2021
@BradReesWork BradReesWork added this to the 21.10 milestone Aug 16, 2021
@BradReesWork BradReesWork removed the ? - Needs Triage Need team to review and classify label Aug 16, 2021
@BradReesWork
Copy link
Member

BradReesWork commented Aug 16, 2021

@ZaneL Sorry for the slow response, it is vacation season. We are working on improving the networkX comparability and you have found one of the areas that we still need to resolve. Adding this to the list of things to be addressed in the current release

rapids-bot bot pushed a commit that referenced this issue Aug 18, 2021
Allow `force_atlas2` to support hypercube_graph
The example provided in the issue linked to this PR works
closes #1767

Authors:
  - Joseph Nke (https://github.com/jnke2016)

Approvers:
  - Brad Rees (https://github.com/BradReesWork)
  - Rick Ratzel (https://github.com/rlratzel)

URL: #1779
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants