Skip to content

Dev/layouts - #251

Merged
lmeyerov merged 11 commits into
masterfrom
dev/layouts
Jul 16, 2021
Merged

lmeyerov merged 11 commits into
masterfrom
dev/layouts

Conversation

@lmeyerov

@lmeyerov lmeyerov commented Jul 16, 2021 •

Copy link
Copy Markdown
Contributor

Features around comcast. Known issue on aliasing, e.g, degree.

Generate node table:

g = graphisty.edges(pd.DataFrame({'s': ['a', 'b'], 'd': ['b', 'c']})
g2 = g.materialize_nodes()
g2._nodes  # pd.DataFrame({'id': ['a', 'b', 'c']})

Compute degrees

g = graphisty.edges(pd.DataFrame({'s': ['a', 'b'], 'd': ['b', 'c']})
g2 = g.get_degree()
g2._nodes  # pd.DataFrame({
           #  'id': ['a', 'b', 'c'],
           #  'degree_in': [0, 1, 1],
           #  'degree_out': [1, 1, 0],
           #  'degree': [1, 1, 1]
           #})

Removing nodes

g = graphisty.edges(pd.DataFrame({'s': ['a', 'b', 'c'], 'd': ['b', 'c', 'a']})
g2 = g.drop_nodes(['c'])  # drops node c, edge c->a, edge b->c, 

tree layout

g2a = g.tree_layout()
g2b = g2.tree_layout(allow_cycles=False, remove_self_loops=False, vertical=False)
g2c = g2.tree_layout(ascending=False, level_align='center')
g2d = g2.tree_layout(level_sort_values_by=['type', 'degree'], level_sort_values_by_ascending=False)

layout settings

g3a = g2a.layout_settings(locked_r=True, play=1000)
g3b = g2a.layout_settings(locked_y=True, play=0)
g3c = g2a.layout_settings(locked_x=True)

@lmeyerov
lmeyerov merged commit 605460d into master Jul 16, 2021
@lmeyerov
lmeyerov deleted the dev/layouts branch July 16, 2021 12:17
lmeyerov added a commit that referenced this pull request Mar 13, 2022
pull Bot referenced this pull request in admariner/pygraphistry Mar 13, 2022
lmeyerov added a commit that referenced this pull request Sep 7, 2026
…measure (pyg-bench #251); board prose follows the new verdicts

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HdYcPgiafGGutW9KfG3gg1
lmeyerov added a commit that referenced this pull request Sep 14, 2026
…measure (pyg-bench #251); board prose follows the new verdicts

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HdYcPgiafGGutW9KfG3gg1
lmeyerov added a commit that referenced this pull request Sep 15, 2026
…measure (pyg-bench #251); board prose follows the new verdicts

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HdYcPgiafGGutW9KfG3gg1
lmeyerov added a commit that referenced this pull request Sep 16, 2026
…measure (pyg-bench #251); board prose follows the new verdicts

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HdYcPgiafGGutW9KfG3gg1
lmeyerov added a commit that referenced this pull request Sep 17, 2026
…measure (pyg-bench #251); board prose follows the new verdicts

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HdYcPgiafGGutW9KfG3gg1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant