func FromBinary(b []byte) *Graph {
	p := newBytesBinParser(b)
	return p.parse()
}
FromBinary converts an OGDL binary stream of bytes into a Graph.
package ogdl
import (
	"bufio"
	"bytes"
	"io"
	"io/ioutil"
)
type binParser struct {
	r    *bufio.Reader
	last int
	n int
}
func newBytesBinParser(b []byte) *binParser {
	p := &binParser{bufio.NewReader(bytes.NewReader(b)), 0, 0}
	if p.r == nil {
		return nil
	}
	return p
}
func newFileBinParser(file string) *binParser {
	b, err := ioutil.ReadFile(file)
	if err != nil || len(b) == 0 {
		return nil
	}
	return newBytesBinParser(b)
}
func newBinParser(r io.Reader) *binParser {
	return &binParser{bufio.NewReader(r), 0, 0}
}