Skip to content
Snippets Groups Projects
Commit ae071454 authored by Paul Nitzke's avatar Paul Nitzke
Browse files

Make ColorsUsed a public attribute of IGraph

* This should have been part of IGraph already since both graph
  implementations provide it.
* We also need it to be public to get the number of colors used in
  ColoredDotWriter
parent ce99af67
Branches
No related tags found
1 merge request!28Rework the algorithm that chooses colors for DOT output
......@@ -37,7 +37,7 @@ namespace SparseTransform.DataStructures
/// <summary>
/// Number of colors used for coloring.
/// </summary>
private int ColorsUsed
public int ColorsUsed
{
get
{
......
......@@ -69,7 +69,7 @@ namespace SparseTransform.DataStructures
/// <summary>
/// Number of colors used for coloring. Works if either or both sides are colored
/// </summary>
private int ColorsUsed
public int ColorsUsed
{
get
{
......
......@@ -6,6 +6,8 @@ namespace SparseTransform.DataStructures
/// </summary>
public interface IGraph
{
public int ColorsUsed { get; }
/// <summary>
/// Adds an edge between nodes i and j. If either of the nodes is missing it is created.
/// </summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment