Graph is the wgraph/1 canonical representation of InGraph.
InGraph, can be either a wgraph or a csv file that has columns
'from', 'to' and 'weight'. The latter case needs pack(mtx).
When Graph is given, OutF is taken to be a file to store Graph in.
When Opts are given they can change the default column names of OutF.
Opts
cnm_from(From=from)
name for from column
cnm_to(To=to)
name for to column
cnm_weight(Weight=weight)
name for weight column
save(Save=false)
to save wgraph in csv file, defaults to true if Stem is given
Display weighted graph Wgraph possibly from an existing layout that may include positions,
colours and labels. Wgraph should be in a form accepted by wgraph/3.
Layout (see below) should be an mtx/1 matrix with at least two columns: x, y defining
the positions of the nodes. In addition if columns: labels and colours are present but
not given in Opts they will be used.
Graph can be an mtx/1 matrix with at least 2 columns: from and to.
In addition column weight is also processed. When missing and no weights option
is given, all weights are set to 1.
Opts
Ropt=Rval
= paired options are passed to the plotter call, see r_call/2
cnm_colour(Clrs=colour)
= (layout) colours column name
cnm_label(Lbs=label)
(layout) labels column name
cnm_x(Xc=x)
(layout) column name for X position coordinate
cnm_y(Yc=y)
(layout) column name for Y position coordinate
cnm_from(From=from)
(graph) column name for From column
cnm_to(To=to)
(graph) column name for To column
cnm_weight(Wc=weight)
(graph) column name for edge weight
colours(Clrs=white)
colours for the nodes - should be known to R
format(Frm=x11)
output format: pdf, x11 or none (as x11 without explicit <- x11() call).
when Plotter is ggnet2 then Frm can x11 or any file extension recognised by
your installation of ggsave().
labels(Lbs=[110, 111, 100, 101, 115])
labels for the nodes, _[]_ for none, false for leaving it unset
layout_call(LayG)
layout R/qgraph function to use for getting x,y coordinates.
defaults to... which is only used if layout_mtx(LayM) is also missing
layout_mtx(LayM)
used if layout_call(LayG) is not present
orphan_edge_weight(OEW)
if present an edge is added for every orphan from a medianed node with this weight
plotter(Plotter=qgraph)
also known: igraph and ggnet2
save(Save=true)
to save the layout and graph, defaults to false if no stem is given
stem(Stem)
stem of the output file (def. replaces .csv to .pdf if LayM is a file- else wgraph_plot)
height(H=7)
height of the plot device
width(W=7)
width of the plot device
label_distance(LbD=0.5)
distance for vertex labels
node_size(Vz)
size of nodes, can be prop(Min,Mult)- size being proportional to label length
Create and occupy R matrix Rmtx as the weighed adjacency
matrix of Wgraph (wgraph/1).
When present Nodes is used to define the shape and location of nodes in Rmtx.
Else the set of N1 and N2s in Wgraph is used (see wgraph_vertices/2).
Replace edges of cliques with central nodes from which edges eminate
to all present members. Non clique nodes that connect to all present
nodes point to the central node, else their connections are untouched.
Fired is a list of Clq-Set pairs, where Clq is a new node and Set is the
set of all nodes connecting to Clq.
Optscliques(Cliques)
either a Clique-Members list, or /2 predicate holding Member, Clique relations
replace_requires(RR=all_present)
i think this is min_pop_present actually
min_pop(MinPop=4)
how many of the clique members have to be present for replace to take place
author
- nicos angelopoulos
version
- 0.1 2015/3/30
To be done
- complete(Comp) flag
- alternative implementations of replace_requires(RR) flag