atom.c
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include "common.h"
#include "hash.h"
#include "vertex.h"
#include "atom.h"
void
atomfree(struct atom *a)
{
switch (a->atomtype) {
case NEW_VERTEX:
free(a->newvertex.upcontext.entries);
free(a->newvertex.downcontext.entries);
break;
case EDGE_MAP:
free(a->edgemap.edges.entries);
break;
}
}