@model string @{ ViewData["Title"] = "Writing Solver graph"; }

Writing Solver graph

Immutable graph versions. Inspect nodes, choices, conditional connections, weights, diagnoses and feature mappings below. Validation reports reachability, dead ends, invalid references and unpermitted cycles. Publication preserves earlier snapshots.

@if (ViewData["Report"] is IEnumerable report) { } @if(ViewData["Graph"] is PlotLine.Models.WritingSolver.SolverGraph graph) {

Graph at a glance

Version @graph.Version · @graph.ChangeNote

@foreach(var node in graph.Nodes.OrderBy(n=>n.Order)) { }
NodeQuestion / activeConnections and conditionsChoice signals
@node.Id (@node.Type)@node.Title
Active: @node.Active · Multiple: @node.Multiple
@foreach(var route in node.Routes) {

→ @route.Target
Choice: @(route.Choice ?? "any") · Signal: @(route.Signal ?? "any") ≥ @route.Minimum · Priority: @route.Priority · Cycle allowed: @route.AllowCycle

}
@foreach(var choice in node.Choices.OrderBy(c=>c.Order)) {

@choice.Id: @choice.Text
Active: @choice.Active · Fallback: @choice.Fallback
@string.Join(", ",choice.Weights.Select(w=>$"{w.Key}: {w.Value}"))

}

Diagnoses and capabilities

@foreach(var solution in graph.Solutions) { }
Diagnosis / activeSignals / thresholdFeature mappings
@solution.PageTitle
@solution.Id · Active: @solution.Active · Index: @solution.Index
@string.Join(", ",solution.Signals.Select(w=>$"{w.Key}: {w.Value}"))
Threshold: @solution.Threshold
@foreach(var link in solution.Features) {

@link.Feature (@(link.Primary ? "primary" : "supporting"))
@link.Reason

}
}
@Html.AntiForgeryToken()