two-dimensional materials (2dms) have gained significant interest for resistive-switching memory toward neuromorphic and in-memory computing (imc). to achieve atomic-level miniaturization, we introduce vertical hexagonal boron nitride (h-bn) memristors with graphene edge contacts. in addition to enabling three-dimensional (3d) integration (i.e., vertical stacking) for ultimate scalability, the proposed structure delivers ultralow power by isolating single conductive nanofilaments (cnfs) in ultrasmall active areas with negligible leakage thanks to atomically thin (∼0.3 nm) graphene edge contacts. moreover, it facilitates studying fundamental resistive-switching behavior of single cnfs in cvd-grown 2dms that was previously unattainable with planar devices. this way, we studied their programming characteristics and observed a consistent single quantum step in conductance attributed to unique atomically constrained nanofilament behavior in cvd-grown 2dms. this resistive-switching property was previously suggested for h-bn memristors and linked to potential improvements in stability (robustness of cnfs), and now we show experimental evidence including superior retention of quantized conductance.