Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Allow for imports of "primary" classes directly from uavf #31

Open
rland93 opened this issue Apr 25, 2022 · 0 comments
Open

Allow for imports of "primary" classes directly from uavf #31

rland93 opened this issue Apr 25, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rland93
Copy link
Member

rland93 commented Apr 25, 2022

I like what NetworkX does with their classes.

We import the top-level

import networkx as nx

And then we can access the useful networkx classes and functions from this top-level module. For example:

import networkx as nx
G = nx.Graph()
nx.add_path(G, [0, 1, 2])
nx.add_path(G, [0, 10, 2])
print(nx.all_shortest_paths(G, source=0, target=2)]))

We don't need to do like

from networkx.algorithms.shortest_paths import all_shortest_paths

Every time we want to grab a function.

@rland93 rland93 added the enhancement New feature or request label Apr 25, 2022
@rland93 rland93 added this to the 0.1.0 Release milestone Apr 25, 2022
@rland93 rland93 self-assigned this Apr 25, 2022
@rland93 rland93 removed this from the 0.1.0 Release milestone May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant