Aclassofmetric,compact,andtotallydisconnectedspaces,calledself-similarCantorsetsisintroduced.Aself-similarstructureisdefinedtobeagraphwithweightededges.Theintroductionofultrametricsandquasi-isometriesgivesversatilitytothisconstruction.Thermodynamicalfunctionsasfreeenergyandentropyareassociatedwithself-similarstructures.Multifractalanalysis,basedona“LargeDeviations”inequalityandGibbsmeasures,leadstoafairlygeneralHausdorffdimensiontheorem.