Skip to content

Commit

Permalink
Renaming styles for StructurePreserving.
Browse files Browse the repository at this point in the history
  • Loading branch information
daneelsan committed Oct 27, 2020
1 parent dde298f commit a628711
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Kernel/HypergraphToGraph.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@
graphJoin[
hyperedgeGraphs,
VertexStyle -> Replace[OptionValue[Graph, {opts}, VertexStyle],
Automatic -> {{"Hyperedge", _, _} -> style[$lightTheme][$structurePreservingVertexStyle]}],
Automatic -> {{"Hyperedge", _, _} -> style[$lightTheme][$structurePreservingHyperedgeVertexStyle]}],
EdgeStyle -> Replace[OptionValue[Graph, {opts}, EdgeStyle],
Automatic -> {Rule[
DirectedEdge[{"Hyperedge", _, _}, {"Hyperedge", _, _}],
style[$lightTheme][$structurePreservingEdgeStyle]]}],
style[$lightTheme][$structurePreservingHyperedgeToHyperedgeEdgeStyle]]}],
opts]
]

Expand Down
12 changes: 6 additions & 6 deletions Kernel/style.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
PackageScope["$rulialGraphVertexIconFrameMargins"]
PackageScope["$genericLinePlotStyles"]
PackageScope["$genericGraphEdgeStyle"]
PackageScope["$structurePreservingVertexStyle"]
PackageScope["$structurePreservingEdgeStyle"]
PackageScope["$structurePreservingHyperedgeVertexStyle"]
PackageScope["$structurePreservingHyperedgeToHyperedgeEdgeStyle"]

combinedOptionsProperties[plotFunction_][options__] := Sequence[
"Options" -> {options},
Expand Down Expand Up @@ -189,8 +189,8 @@
|>,

"HypergraphStructurePreservingGraph" -> <|
"VertexStyle" -> $structurePreservingVertexStyle,
"EdgeStyle" -> $structurePreservingEdgeStyle
"HyperedgeVertexStyle" -> $structurePreservingHyperedgeVertexStyle,
"HyperedgeToHyperedgeEdgeStyle" -> $structurePreservingHyperedgeToHyperedgeEdgeStyle
|>
|>;

Expand Down Expand Up @@ -301,6 +301,6 @@
$genericGraphEdgeStyle -> Directive[Hue[0.62, 0.3, 0.45], Opacity[0.7], AbsoluteThickness[1.5]],

(* HypergraphToGraph Structure Preserving *)
$structurePreservingVertexStyle -> LightBlue,
$structurePreservingEdgeStyle -> Dashed
$structurePreservingHyperedgeVertexStyle -> LightBlue,
$structurePreservingHyperedgeToHyperedgeEdgeStyle -> Dashed
|>;

0 comments on commit a628711

Please sign in to comment.