Skip to content
Snippets Groups Projects
Commit ae1d238a authored by Dennis Wobbe's avatar Dennis Wobbe :speech_balloon:
Browse files

Adding documentation to ColoredDotWriter

parent d890e865
No related branches found
No related tags found
1 merge request!21Near final implementation of Convert package + documentation
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment