---
name: "Bio::Graph::IO::dip"
section: "3pm"
platform: "linux"
package: "bioperl"
version: "1.5.2.102-3"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Bio::Graph::IO::dip"
---

# Bio::Graph::IO::dip(3pm)

Bio::Graph::IO::dip - class for parsing interaction data in dip format Do not use this module directly, use Bio::Graph::IO, for example:

```
  my $graph_io = Bio::Graph::IO->new(-format => 'dip',
                                     -file   => 'data.dip');
```

The naming system is analagous to the SeqIO system, although usually *next\_network()* will be called only once per file.\
 **next\_network**

```
  name        : next_network
  purpose     : parses a graph file and returns a Bio::Graph::ProteinGraph
                object
  usage       : my $g = $graph_io->next_network();
  arguments   : none
  returns     : a Bio::Graph::ProteinGraph object
```

**write\_network**

```
 name     : write_network
 purpose  : write graph out in dip format
 arguments: a Bio::Graph::ProteinGraph object
 returns  : void
 usage    : $out->write_network($gr);
```
