n_bold.png n_dashed.png n_diagonals.png n_dotted.png n_filled.png \
n_rounded.png n_solid.png n_striped.png n_wedged.png \
none_back.png none_both.png none_forward.png none_none.png \
- normal_back.png normal_both.png normal_forward.png normal_none.png
+ normal_back.png normal_both.png normal_forward.png normal_none.png \
+ spline_curved.png spline_none.png spline_polyline.png \
+ spline_line.png spline_ortho.png spline_spline.png
EXTRA_DIST = $(html_DATA)
<DT><A NAME=d:splines HREF=#a:splines><STRONG>splines</STRONG></A>
<DD> Controls how, and if, edges are represented. If true, edges are drawn as
splines routed around nodes; if false, edges are drawn as line segments.
- If set to "", no edges are drawn at all.
+ If set to <tt>none</tt> or "", no edges are drawn at all.
<P>
(1 March 2007) The values <TT>line</TT> and <TT>spline</TT> can be
used as synonyms for <TT>false</TT> and <TT>true</TT>, respectively.
<P>
(25 Sep 2012) The value <TT>curved</TT> specifies edges should be
drawn as curved arcs.
+ <P>
+ <TABLE>
+ <TR><TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_none.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_line.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_polyline.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_curved.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_ortho.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_spline.png">
+ </TR>
+ <TR><TD ALIGN="center">splines=none<BR>splines=""
+ <TD ALIGN="center">splines=line<BR>splines=false
+ <TD ALIGN="center">splines=polyline
+ <TD ALIGN="center">splines=curved
+ <TD ALIGN="center">splines=ortho
+ <TD ALIGN="center">splines=spline<BR>splines=true
+ </TR>
+ </TABLE>
+
<P>
By default, the attribute is unset. How this is interpreted depends on
the layout. For dot, the default is to draw edges as splines. For all
#
# Required tools: cc, dot, awk, ksh, yacc, gs.
# gs and awk are used in ps_to_jpg.sh
-# dot is used in mkarrows.sh, mkshapes.sh, mkstyles.sh, mktapers.sh
+# dot is used in mkarrows.sh, mkshapes.sh, mkstyles.sh, mktapers.sh, mksplines.sh
# ps_to_png.sh and other make rules rely on netpbm tools
# and ps2raster, which is part of the GMT library.
#
TAPERPNG = normal_forward.png normal_back.png normal_both.png normal_none.png \
none_forward.png none_back.png none_both.png none_none.png
-MPNG = plugins.png sdlshapes.png $(GRADPNG) $(STYLEPNG) $(TAPERPNG)
+SPLINEPNG = spline_none.png spline_line.png spline_spline.png spline_ortho.png spline_curved.png spline_polyline.png
+
+MPNG = plugins.png sdlshapes.png $(GRADPNG) $(STYLEPNG) $(TAPERPNG) $(SPLINEPNG)
SGIF = Mcircle.gif Mdiamond.gif Msquare.gif box.gif \
circle.gif diamond.gif doublecircle.gif \
$(TAPERPNG) : mktapers.sh
./mktapers.sh $@
+$(SPLINEPNG) : mksplines.sh
+ ./mksplines.sh $@
+
clean :
rm -f mklang sdlshapes.ps sdlshapes.ppm html.html
:splines:G:bool/string;
Controls how, and if, edges are represented. If true, edges are drawn as
splines routed around nodes; if false, edges are drawn as line segments.
-If set to "", no edges are drawn at all.
+If set to <tt>none</tt> or "", no edges are drawn at all.
<P>
(1 March 2007) The values <TT>line</TT> and <TT>spline</TT> can be
used as synonyms for <TT>false</TT> and <TT>true</TT>, respectively.
<P>
(25 Sep 2012) The value <TT>curved</TT> specifies edges should be
drawn as curved arcs.
+<P>
+<TABLE>
+<TR><TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_none.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_line.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_polyline.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_curved.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_ortho.png">
+ <TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_spline.png">
+</TR>
+<TR><TD ALIGN="center">splines=none<BR>splines=""
+ <TD ALIGN="center">splines=line<BR>splines=false
+ <TD ALIGN="center">splines=polyline
+ <TD ALIGN="center">splines=curved
+ <TD ALIGN="center">splines=ortho
+ <TD ALIGN="center">splines=spline<BR>splines=true
+</TR>
+</TABLE>
+
<P>
By default, the attribute is unset. How this is interpreted depends on
the layout. For dot, the default is to draw edges as splines. For all
--- /dev/null
+#! /bin/ksh
+#
+# usage: mksplines.sh <spline>
+#
+# where spline has the form spline_<splinesattr>.fmt
+# where .fmt gives the desired output format.
+
+if (( $# == 0 ))
+then
+ echo "mksplines: missing splines name argument"
+ exit 1
+fi
+
+TGT=$1 # spline_kind.fmt
+SPLINE=${1%.*} # spline_kind
+FMT=${1#$SPLINE.} # fmt
+KIND=${SPLINE#spline_} # kind
+
+sfdp -T$FMT -Gviewport=300,300,1,40 -Goverlap=false -Gsplines=$KIND ../../graphs/undirected/ngk10_4.gv > $TGT
+
exec 3>&-
dot -T$FMT $F > $TGT
-# rm -f $F
+ rm -f $F