Function graphannis_capi::corpusstorage::annis_cs_subcorpus_graph
source · #[no_mangle]
pub extern "C" fn annis_cs_subcorpus_graph(
ptr: *const CorpusStorage,
corpus_name: *const c_char,
corpus_ids: *const Vec<CString>,
err: *mut *mut ErrorList
) -> *mut AnnotationGraph
Expand description
Return the copy of a subgraph which includes all nodes that belong to any of the given list of sub-corpus/document identifiers.
ptr
- The corpus storage object.corpus_name
- The name of the corpus for which the subgraph should be generated from.corpus_ids
- A set of sub-corpus/document identifiers describing the subgraph.err
- Pointer to a list of errors. If any error occured, this list will be non-empty.
§Safety
This functions dereferences the err
pointer and is therefore unsafe.