From a060c37173538630c66e54d7f816852fc560498d Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Thu, 26 Oct 2017 15:08:06 -0700 Subject: [PATCH] diplomacy: expose the API to query a Node for its neighbours --- src/main/scala/diplomacy/Nodes.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/scala/diplomacy/Nodes.scala b/src/main/scala/diplomacy/Nodes.scala index a3266977..7c4b0eb8 100644 --- a/src/main/scala/diplomacy/Nodes.scala +++ b/src/main/scala/diplomacy/Nodes.scala @@ -110,8 +110,8 @@ abstract class BaseNode(implicit val valName: ValName) protected[diplomacy] def gci: Option[BaseNode] // greatest common inner protected[diplomacy] def gco: Option[BaseNode] // greatest common outer - protected[diplomacy] def inputs: Seq[(BaseNode, RenderedEdge)] - protected[diplomacy] def outputs: Seq[(BaseNode, RenderedEdge)] + def inputs: Seq[(BaseNode, RenderedEdge)] + def outputs: Seq[(BaseNode, RenderedEdge)] } object BaseNode @@ -396,11 +396,11 @@ sealed abstract class MixedNode[DI, UI, EI, BI <: Data, DO, UO, EO, BO <: Data]( } // meta-data for printing the node graph - protected[diplomacy] def inputs = (iPorts zip edgesIn) map { case ((_, n, p, _), e) => + def inputs = (iPorts zip edgesIn) map { case ((_, n, p, _), e) => val re = inner.render(e) (n, re.copy(flipped = re.flipped != p(RenderFlipped))) } - protected[diplomacy] def outputs = oPorts map { case (i, n, _, _) => (n, n.inputs(i)._2) } + def outputs = oPorts map { case (i, n, _, _) => (n, n.inputs(i)._2) } } abstract class MixedCustomNode[DI, UI, EI, BI <: Data, DO, UO, EO, BO <: Data](