<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Graph::Reader::OID - Perl class for reading a graph from OID format.

SYNOPSIS
     use Graph::Reader::OID;

     my $obj = Graph::Reader::OID-&gt;new;
     my $graph = $obj-&gt;read_graph($oid_file);

METHODS
    "new()"
             Constructor.
             This doesn't take any arguments.
             Returns Graph::Reader::OID object.

    "read_graph($tgf_file)"
             Read a graph from the specified file.
             The argument can either be a filename, or a filehandle for a previously opened file.
             Returns Graph object.

OID FILE FORMAT
     File format with OID list.
     For OID (Object identifier) see L&lt;Object identifier|https://en.wikipedia.org/wiki/Object_identifier&gt;
     Example:
     1.2.410.200047.11.2013.10234913023321120142141561581 Label #1
     1.2.276.0.7230010.3.0.3.6.1 Label #2

EXAMPLE
     use strict;
     use warnings;

     use Graph::Reader::OID;
     use IO::Barf qw(barf);
     use File::Temp qw(tempfile);

     # Example data.
     my $data = &lt;&lt;'END';
     1.2.410.200047.11.2013.10234913023321120142141561581 Label #1
     1.2.276.0.7230010.3.0.3.6.1 Label #2
     END

     # Temporary file.
     my (undef, $tempfile) = tempfile();

     # Save data to temp file.
     barf($tempfile, $data);

     # Reader object.
     my $obj = Graph::Reader::OID-&gt;new;

     # Get graph from file.
     my $g = $obj-&gt;read_graph($tempfile);

     # Print to output.
     print $g."\n";

     # Clean temporary file.
     unlink $tempfile;

     # Output:
     # 1-1.2,1.2-1.2.276,1.2-1.2.410,1.2.276-1.2.276.0,1.2.276.0-1.2.276.0.7230010,1.2.276.0.7230010-1.2.276.0.7230010.3,1.2.276.0.7230010.3-1.2.276.0.7230010.3.0,1.2.276.0.7230010.3.0-1.2.276.0.7230010.3.0.3,1.2.276.0.7230010.3.0.3-1.2.276.0.7230010.3.0.3.6,1.2.276.0.7230010.3.0.3.6-1.2.276.0.7230010.3.0.3.6.1,1.2.410-1.2.410.200047,1.2.410.200047-1.2.410.200047.11,1.2.410.200047.11-1.2.410.200047.11.2013,1.2.410.200047.11.2013-1.2.410.200047.11.2013.10234913023321120142141561581

DEPENDENCIES
    Graph::Reader, Readonly.

SEE ALSO
    Graph::Reader
        base class for Graph file format readers

    Task::Graph::Reader
        Install the Graph::Reader modules.

    Task::Graph::Writer
        Install the Graph::Writer modules.

REPOSITORY
    &lt;https://github.com/michal-josef-spacek/Graph-Reader-OID&gt;

AUTHOR
    Michal Josef Е&nbsp;paДЌek &lt;mailto:skim@cpan.org&gt;

    &lt;http://skim.cz&gt;

LICENSE AND COPYRIGHT
    В© 2014-2023 Michal Josef Е&nbsp;paДЌek

    BSD 2-Clause License

VERSION
    0.04

</pre></body></html>