-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Algorithm Result object complete rewrite, Add betweeen centrality, Ad…
…d Zaks Karate Club (#1327) * checkpoint, need to fix tests * im so happy it works :D * remove type_name param * algorithm result tests complete, new fmt, fixed group_by, fixed all types * renamed old algorithm result, changed base result type to a hashmap instead of vector due to potential issues with sparse vectors if the dataset is large, added missing G type for the graph, brought back results type * fix bad 0 checking * macro magic but partially implemented * added the extra macros, added all missing functions, removed all pointers for clones (:vomit: pyo3) * algorithm result object + all macros is complete in both rust and python * fixed reciprocity, fixed centrality * fixed pagerank, fixed graphql new type issues * balance algorithm complete * sssp fixed * sssp forgot le lib * temporal reachability fixed * hits fixed * connected components nearly fixed, last test * removed bad test * three node motif completed, algorithm result complte * good bye bugs * removed all warnings * fix lotr bug * i think i fixed hulong * fix dusty benchmark * rename macro rules, fix doctests * implement debug for algo result * fix pytests * Zaks Karate Club Graph (#1326) * betweenness centrality for a directed graph with and without normalisation * cleanup * swapped to algorithm result, added rust docs * ported to python, added python docs, added python test * fix formatting * karate club graph, but its half working, adding 1 extra node and way too many edges * fixed issue with rows * betweeness has float calc differences but largely the same * fix test * fixes issue with python? * port betweeness centrality to new algo object and fix over python tests * Changed State to use Internal ID everywhere, fixed most of the algorithms, fixed the tests * fixed all the algos * fn name changes * added very basic hashing to allow get_all to return a vertex object * vertex view now returned by algo rest * fix python algo result for vertexview * reorder tests * implemented custom debug fmt display for vertex view, implemented custom display fmt, fixed algorithm tests, fixed all rust issues * extended richcmp for python objects, fixed all python tests * connected_components.rs passes * moved algos * resolved comments * changes due to comments * windows works, layers dont * added tests for windowed graphs * complete! * bad comments for ubuntu * bad colon
- Loading branch information
Showing
35 changed files
with
1,760 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def test_karate_club(): | ||
from raphtory.graph_loader import karate_club_graph | ||
g = karate_club_graph() | ||
assert g.count_vertices() == 34 | ||
assert g.count_edges() == 155 | ||
|
Oops, something went wrong.