write_graphml {mosbi} | R Documentation

## Save adjacency matrix as GraphML file

### Description

Save and adjacency matrix as returned by `full_graph` or 1 - `distance_matrix` as a GraphML file.

### Usage

    write_graphml(m, filename, cols)

### Arguments

`m` | A symmetric numeric matrix (Adjacency matrix). Rownames are considered as node names.
`filename` | Name of the resulting GraphML file (should end with ".gml").
`cols` | Node colors.

### Value

0 if successful.

### Examples

    m <- matrix(seq(1:16), nrow=4)
    # m <- matrix(rnorm(10000), nrow=100)
    # bics <- c(run_fabia(m), run_isa(m), run_plaid(m))
    # bn <- bicluster_network(bics, m)
    # write_graphml(apply_threshold(bn), "testfile.txt")

[Package mosbi version 1.0.3 Index]