Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SparseTransform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Nitzke
SparseTransform
Commits
ae1d238a
Commit
ae1d238a
authored
2 years ago
by
Dennis Wobbe
Browse files
Options
Downloads
Patches
Plain Diff
Adding documentation to ColoredDotWriter
parent
d890e865
No related branches found
No related tags found
1 merge request
!21
Near final implementation of Convert package + documentation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/SparseTransform/Convert/ColoredDotWriter.cs
+12
-1
12 additions, 1 deletion
src/SparseTransform/Convert/ColoredDotWriter.cs
with
12 additions
and
1 deletion
src/SparseTransform/Convert/ColoredDotWriter.cs
+
12
−
1
View file @
ae1d238a
...
...
@@ -12,7 +12,11 @@ namespace SparseTransform.Convert
{
private
bool
textcolor
;
private
string
[]
dictColor
=
new
string
[
65
];
/// <summary>
/// Constructor constructing a color-dictionary for color purpose.
/// </summary>
/// <param name="textColor">decision whether the labels should be colored or labelled.</param>
public
ColoredDotWriter
(
bool
textColor
)
{
this
.
textcolor
=
textColor
;
...
...
@@ -29,6 +33,13 @@ namespace SparseTransform.Convert
}
}
/// <summary>
/// Labels the node with the respective colors determined by it's index. Overrides the method in DotWriter
/// </summary>
/// <param name="node">the node to be labeld</param>
/// <param name="präfix">the paefix of the node-name (either 'c_' or 'r_'</param>
/// <returns></returns>
public
override
String
NodeLabel
(
GraphNode
node
,
String
pr
ä
fix
)
{
if
(
textcolor
||
node
.
Color
>
64
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment