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

"Unordered" edge type in WolframModelPlot #410

Open
maxitg opened this issue Sep 17, 2020 · 0 comments
Open

"Unordered" edge type in WolframModelPlot #410

maxitg opened this issue Sep 17, 2020 · 0 comments
Assignees
Labels
analysis Adds or changes evolution analysis tools, e.g., `WolframModelEvolutionObject` properties feature New functionality, or change in existing functionality good first issue Good for newcomers help wanted Extra attention is needed wolfram language Requires Wolfram Language implementation

Comments

@maxitg
Copy link
Owner

maxitg commented Sep 17, 2020

The problem

We need to be able to plot undirected hypergraphs. So, we need "Unordered" as a possible second argument to "WolframModelPlot".

Possible solution

UnorderedHypergraphPlot[h_, opts___] := 
 WolframModelPlot[h, opts, "ArrowheadLength" -> 0, 
  EdgeStyle -> <|{_, _, _ ..} -> Transparent|>, 
  "EdgePolygonStyle" -> <|{_, _, _ ..} -> 
     Directive[Hue[0.63, 0.66, 0.81], Opacity[0.1], 
      EdgeForm[Directive[Hue[0.63, 0.7, 0.5], Opacity[0.7]]]]|>]
In[] := UnorderedHypergraphPlot[{{20, 27, 28, 35, 36}, {20, 39, 42, 45}, {24, 31, 32, 35, 38, 43, 
  44}, {24, 25, 26}, {25, 27, 30, 39, 40}, {26, 29, 33, 43, 46}, {28, 
  29, 30}, {31, 34, 37, 41}, {32, 33, 34}, {36, 37, 38}, {40, 41, 
  42}, {44, 45, 46}}]

image

@maxitg maxitg added feature New functionality, or change in existing functionality help wanted Extra attention is needed analysis Adds or changes evolution analysis tools, e.g., `WolframModelEvolutionObject` properties wolfram language Requires Wolfram Language implementation labels Sep 17, 2020
@maxitg maxitg changed the title "Undirected" edge type in WolframModelPlot "Unordered" edge type in WolframModelPlot Oct 8, 2020
@taliesinb taliesinb self-assigned this Oct 11, 2020
@maxitg maxitg added the good first issue Good for newcomers label Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis Adds or changes evolution analysis tools, e.g., `WolframModelEvolutionObject` properties feature New functionality, or change in existing functionality good first issue Good for newcomers help wanted Extra attention is needed wolfram language Requires Wolfram Language implementation
Projects
None yet
Development

No branches or pull requests

2 participants