if(scalar(@_) == 1){
my $k = shift;
- return $self->{_many}{$k};
+ return $self->{_many}{$k} || 0;
} elsif(@_) {
my %arg = @_;
if(scalar(@_) == 1){
my $k = shift;
- return $self->{_via}{$k};
+ return $self->{_via}{$k} || 0;
} elsif(@_) {
my %arg = @_;
if(scalar(@_) == 1){
my $k = shift;
- return $self->{_has}{$k};
+ return $self->{_has}{$k} || 0;
} elsif(@_) {
my %arg = @_;
if(scalar(@_) == 1){
my $k = shift;
- return $self->{_edgecount}{$k};
+ return $self->{_edgecount}{$k} || 0;
} elsif(@_) {
my %arg = @_;