Write graphs and their cohesive block hierarchy as Pajek files
Creates a series of Pajek-compatible files from a
as output by
write.pajek.bgraph(graph, filename, hierarchy = FALSE)
bgraphobject as output by
- The filename without file extension to use.
- Logical. Should a separate
.clufile be created for each block in the graph? (see details)
This function writes at least two files to disk. First, the file
filename.net contains the basic graph structure---vertices and
edges. The second is the file
filename.clu, which clusters the
vertices according to vertex connectivity of their maxmally cohesive
subgraph. This uses the same logic as the default vertex coloring in
TRUE, more detailed and complete
information is written to a further series of files.
For each block a seperate
.clu file is written, each named like
TRUE, a tree
representing the block hierarchy is written to
filename_blocktree.net, allowing the subset-structure of the
individual block structures to be determined.
This function has not been thoroughly tested, and may contain bugs