@@ -38,19 +38,19 @@ def rawqueryset_to_values_list(rawqueryset):
3838
3939
4040def rawqueryset_to_dataframe (rawqueryset ):
41- """Retruns a pandas dataframe"""
41+ """Returns a pandas dataframe"""
4242 return pd .DataFrame (
4343 rawqueryset_to_values_list (rawqueryset ), columns = list (rawqueryset .columns )
4444 )
4545
4646
4747def edges_from_nodes_queryset (edge_model , nodes_queryset ):
48- """Given a QuerySet or RawQuerySet of nodes, returns a queryset of the associated edges"""
48+ """Given an Edge Model and a QuerySet or RawQuerySet of nodes, returns a queryset of the associated edges"""
4949 return _filter_order (edge_model .objects , ["parent" , "child" ], nodes_queryset )
5050
5151
5252def nodes_from_edges_queryset (node_model , edges_queryset ):
53- """Given a QuerySet or RawQuerySet of edges, returns a queryset of the associated nodes"""
53+ """Given a Node Model and a QuerySet or RawQuerySet of edges, returns a queryset of the associated nodes"""
5454 nodes_list = (
5555 _filter_order (
5656 node_model .objects ,
@@ -71,12 +71,13 @@ def nodes_from_edges_queryset(node_model, edges_queryset):
7171 return node_model .objects .filter (pk__in = nodes_list )
7272
7373
74- def nx_from_edges ( queryset , fields_array = None ):
75- """Provided a queryset of edges, builds a NetworkX graph"""
74+ def nx_from_nodes_queryset ( nodes_queryset ):
75+ """Provided a queryset of nodes, returns a NetworkX graph"""
7676 # ToDo: Implement
77- graph = nx . Graph ()
77+ pass
7878
7979
80- def nx_from_nodes (queryset ):
80+ def nx_from_edges_queryset (edges_queryset , fields_array = None ):
81+ """Provided a queryset of edges, returns a NetworkX graph"""
8182 # ToDo: Implement
82- pass
83+ graph = nx . Graph ()
0 commit comments