Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mockup-generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dosek-verification
mockup-generator
Merge requests
!3
Color epsilon edges blue in dot file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Open
Color epsilon edges blue in dot file
mgttlinger/osek-verification:master
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Color epsilon edges blue in dot file
Merlin
requested to merge
mgttlinger/osek-verification:master
into
master
May 13, 2017
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
master
version 1
00fec180
May 13, 2017
master (base)
and
latest version
latest version
00fec180
1 commit,
May 16, 2017
version 1
00fec180
1 commit,
May 13, 2017
1 file
+
4
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Search/Dot.hs
+
4
−
1
View file @ 00fec180
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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"
Loading