Skip to content
Snippets Groups Projects
Commit 00fec180 authored by Merlin Göttlinger's avatar Merlin Göttlinger
Browse files

Color epsilon edges blue in dot file

parent 72b1c84a
Branches master
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
-- TODO Document
module Search.Dot (graph2dot) where
import Compare.SSEGraph
import Data.Monoid
import qualified Data.Graph.Inductive as G
......@@ -36,4 +37,6 @@ dotEdges = foldMap formatEdge . G.labEdges . graph
where
formatEdge (from, to, label) =
B.fromString (show from) <> " -> " <> B.fromString (show to)
<> " [label=\"" <> B.fromText label <> "\"];\n"
<> " [label=\"" <> B.fromText label <> "\", color=" <> color label <> "];\n"
color label = if isEpsilon $ SSEEdgeLabel label then "blue" else "black"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment