< Summary

Information
Class: MoreStructures.Graphs.ReverseProxyGraph<T>
Assembly: MoreStructures
File(s): /home/runner/work/MoreStructures/MoreStructures/MoreStructures/Graphs/ReverseProxyGraph.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 20
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_Proxied()100%1100%
.ctor(...)100%1100%
GetNumberOfVertices()100%1100%
Reverse()100%1100%
GetAllEdges()100%2100%

File(s)

/home/runner/work/MoreStructures/MoreStructures/MoreStructures/Graphs/ReverseProxyGraph.cs

#LineLine coverage
 1namespace MoreStructures.Graphs;
 2
 3internal abstract class ReverseProxyGraph<T> : IGraph
 4    where T : IGraph
 5{
 10916    protected T Proxied { get; }
 7
 5988    protected ReverseProxyGraph(T proxied)
 5989    {
 59810        Proxied = proxied;
 59811    }
 12
 13    public abstract IEnumerable<IGraph.Adjacency> GetAdjacentVerticesAndEdges(
 14        int start, bool takeIntoAccountEdgeDirection);
 4215    public virtual int GetNumberOfVertices() => Proxied.GetNumberOfVertices();
 1616    public virtual IGraph Reverse() => Proxied;
 17
 18    public IEnumerable<(int edgeStart, int edgeEnd)> GetAllEdges() =>
 12419        Proxied.GetAllEdges().Select(e => (e.edgeEnd, e.edgeStart));
 20}