Skip to main content
code now works
Source Link
István Zachar
  • 47.2k
  • 20
  • 147
  • 307

I want to create the following two graphs.

Two Feed-Forward Loops

So far I tried the following Code

GraphPlot[{"X" -> "Y", "Y" -> "Z", "X" -> "Z"},     VertexCoordinateRules -> {"X" -> {0, 0}, "Y" -> {1, 0},  "Z" -> {2, 0}},     EdgeRenderingFunction -> (IfIf[  [Last[#2]  Last[#2] == "Z", {Red, Arrow[#1]}, {GrayLevel[0.5],Arrow[#1]}] &),   Arrow[#1]}] &), VertexLabeling -> True,  DirectedEdges -> True,]True] 

The Output was the following Graphic

Try of an FFL

My Questions are:

  1. How do I get the arrow from X to Z as in the first Picture?

  2. How can I add the wavy arrows for $S_X$ and $S_Y$?

  3. How can I change the arrow head into an inhibitor sign as required for the Ic1-FFL?

I want to create the following two graphs.

Two Feed-Forward Loops

So far I tried the following Code

GraphPlot[{"X" -> "Y", "Y" -> "Z", "X" -> "Z"},  VertexCoordinateRules -> {"X" -> {0, 0}, "Y" -> {1, 0}, "Z" -> {2, 0}},  EdgeRenderingFunction -> (If [Last[#2] == "Z", {Red, Arrow[#1]}, GrayLevel[0.5],Arrow[#1]}] &),   VertexLabeling -> True,  DirectedEdges -> True,] 

The Output was the following Graphic

Try of an FFL

My Questions are:

  1. How do I get the arrow from X to Z as in the first Picture?

  2. How can I add the wavy arrows for $S_X$ and $S_Y$?

  3. How can I change the arrow head into an inhibitor sign as required for the Ic1-FFL?

I want to create the following two graphs.

Two Feed-Forward Loops

So far I tried the following Code

GraphPlot[{"X" -> "Y", "Y" -> "Z", "X" -> "Z"},    VertexCoordinateRules -> {"X" -> {0, 0}, "Y" -> {1, 0},  "Z" -> {2, 0}},    EdgeRenderingFunction -> (If[    Last[#2] == "Z", {Red, Arrow[#1]}, {GrayLevel[0.5], Arrow[#1]}] &), VertexLabeling -> True, DirectedEdges -> True] 

The Output was the following Graphic

Try of an FFL

My Questions are:

  1. How do I get the arrow from X to Z as in the first Picture?

  2. How can I add the wavy arrows for $S_X$ and $S_Y$?

  3. How can I change the arrow head into an inhibitor sign as required for the Ic1-FFL?

added 5 characters in body; edited title
Source Link
Szabolcs
  • 238.9k
  • 32
  • 653
  • 1.3k

Edge Proplemsproblems in a directed graph

I want to create the following two graphs.

Two Feed-Forward LoopsTwo Feed-Forward Loops

So far I tried the following Code

GraphPlot[{"X" -> "Y", "Y" -> "Z", "X" -> "Z"}, VertexCoordinateRules -> {"X" -> {0, 0}, "Y" -> {1, 0}, "Z" -> {2, 0}}, EdgeRenderingFunction -> (If [Last[#2] == "Z", {Red, Arrow[#1]}, GrayLevel[0.5],Arrow[#1]}] &), VertexLabeling -> True, DirectedEdges -> True,] 

The Output was the following Graphic

Try of an FFLTry of an FFL

My Questions are:

a) How do I get the arrow from X to Z as in the first Picture?

b) How can I add the wavy arrows for $S_X$ and $S_Y$?

c) How can I change the arrow head into an inhibitor sign as required for the Ic1-FFL?

  1. How do I get the arrow from X to Z as in the first Picture?

  2. How can I add the wavy arrows for $S_X$ and $S_Y$?

  3. How can I change the arrow head into an inhibitor sign as required for the Ic1-FFL?

Edge Proplems in a directed graph

I want to create the following two graphs.

Two Feed-Forward Loops

So far I tried the following Code

GraphPlot[{"X" -> "Y", "Y" -> "Z", "X" -> "Z"}, VertexCoordinateRules -> {"X" -> {0, 0}, "Y" -> {1, 0}, "Z" -> {2, 0}}, EdgeRenderingFunction -> (If [Last[#2] == "Z", {Red, Arrow[#1]}, GrayLevel[0.5],Arrow[#1]}] &), VertexLabeling -> True, DirectedEdges -> True,] 

The Output was the following Graphic

Try of an FFL

My Questions are:

a) How do I get the arrow from X to Z as in the first Picture?

b) How can I add the wavy arrows for $S_X$ and $S_Y$?

c) How can I change the arrow head into an inhibitor sign as required for the Ic1-FFL?

Edge problems in a directed graph

I want to create the following two graphs.

Two Feed-Forward Loops

So far I tried the following Code

GraphPlot[{"X" -> "Y", "Y" -> "Z", "X" -> "Z"}, VertexCoordinateRules -> {"X" -> {0, 0}, "Y" -> {1, 0}, "Z" -> {2, 0}}, EdgeRenderingFunction -> (If [Last[#2] == "Z", {Red, Arrow[#1]}, GrayLevel[0.5],Arrow[#1]}] &), VertexLabeling -> True, DirectedEdges -> True,] 

The Output was the following Graphic

Try of an FFL

My Questions are:

  1. How do I get the arrow from X to Z as in the first Picture?

  2. How can I add the wavy arrows for $S_X$ and $S_Y$?

  3. How can I change the arrow head into an inhibitor sign as required for the Ic1-FFL?

Source Link

Edge Proplems in a directed graph

I want to create the following two graphs.

Two Feed-Forward Loops

So far I tried the following Code

GraphPlot[{"X" -> "Y", "Y" -> "Z", "X" -> "Z"}, VertexCoordinateRules -> {"X" -> {0, 0}, "Y" -> {1, 0}, "Z" -> {2, 0}}, EdgeRenderingFunction -> (If [Last[#2] == "Z", {Red, Arrow[#1]}, GrayLevel[0.5],Arrow[#1]}] &), VertexLabeling -> True, DirectedEdges -> True,] 

The Output was the following Graphic

Try of an FFL

My Questions are:

a) How do I get the arrow from X to Z as in the first Picture?

b) How can I add the wavy arrows for $S_X$ and $S_Y$?

c) How can I change the arrow head into an inhibitor sign as required for the Ic1-FFL?