public static class GraphModel.Serialization extends Object
Constructor and Description |
---|
Serialization() |
Modifier and Type | Method and Description |
---|---|
static GraphModel |
read(DataInput input)
Read the
input and return the read graph model. |
static GraphModel |
readWithoutVersionHeader(DataInput input,
float graphStoreVersion)
Read the
input and return the read graph model without
an explicit version header in the input. |
static void |
write(DataOutput output,
GraphModel graphModel)
Write
graphModel to output . |
public static GraphModel read(DataInput input) throws IOException
input
and return the read graph model.input
- data input to read fromIOException
- if an io error occurspublic static GraphModel readWithoutVersionHeader(DataInput input, float graphStoreVersion) throws IOException
input
and return the read graph model without
an explicit version header in the input. To be used with old
graphstore serialized data prior to version 0.4 (first, that added
the version header).input
- data input to read fromgraphStoreVersion
- Forced version to useIOException
- if an io error occurspublic static void write(DataOutput output, GraphModel graphModel) throws IOException
graphModel
to output
.output
- data output to write tographModel
- graph model to writeIOException
- if an io error occursCopyright © 2007–2017 Gephi Consortium. All rights reserved.