neuroarch.na.NeuroArch.exists
- NeuroArch.exists(cls, **attr)[source]
Check if data exists in the database. Program will search in the cache first, if no hit, will query database.
- Parameters:
cls (str) – Node class or classes to retrieve.
attr (dict (optional)) – node attributes using key=value.
- Returns:
q – Indicate if such a node exists.
- Return type:
bool