The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ODO::Graph - Base methods for a graph object

SYNOPSIS

 use ODO::Graph::Simple;

 # Create an ODO::Graph::Simple object backed by memory
 my $graph = ODO::Graph::Simple->Memory();

DESCRIPTION

Base graph object that defines the graph interface.

CONSTRUCTOR

Constructor.

AUTOLOAD

Autoload.

METHODS

add( $statement )
add( \@statements )
add( @statements )

Add statement(s).

remove( $statement )
remove( \@statements )
remove( @statements )

Remove statement(s).

size( )

Returns the number of statements in the graph.

query( $query )

Query the graph based on the query parameter which must be a subclass of ODO::Query.

clear( )

Remove all statements from the graph.

contains( $query )

Returns a boolean value of the graph contains results that match the query.

storage( )

Returns the underlying graph storage object. See ODO::Graph::Storage for more information.

storage_package( )

Returns the name of the package for the underlying graph storage object. See ODO::Graph::Storage for more information.

SEE ALSO

ODO::Graph::Storage, ODO::Statement, ODO::Query

COPYRIGHT

Copyright (c) 2005-2006 IBM Corporation.

All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html